package net.optix.ip.vo
{
	import mx.collections.ArrayCollection;
	
	public class TrackDocketVO
	{
		public var type:int;
		public var year:int;
		public var month:int;
		
		public static function purseTracks(tracks:XML):ArrayCollection
		{
			var arr:ArrayCollection	=	new ArrayCollection();
			for(var i:int=0; i<tracks.Data.length(); i++)
			{
				var track:TrackDocketVO	=	new TrackDocketVO();
				track.type	=	tracks.Data[i].Type;
				track.year	=	tracks.Data[i].Year;
				track.month=	tracks.Data[i].Month;
	
				arr.addItem(track);
			}
			
			return arr;
		}
	}
}